package com.aos.erp.manager.mapper.dsc;

import com.aos.erp.common.dao.mapper.SuperMapper;
import com.aos.erp.manager.model.dsc.vo.DsContractVo;
import com.aos.erp.manager.model.dsc.DsContract;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface DsContractMapper extends SuperMapper<DsContract>  {

    @Update("update t_ds_contract set update_time=now(),dsc_name='${dscName}',dsc_ds_id='${dscDsId}',dsc_ds_name='${dscDsName}',dsc_customer_name='${dscCustomerName}',dsc_contacts_name='${dscContactsName}',dsc_contacts_phone='${dscContactsPhone}',dsc_sign_name='${dscSignName}',dsc_sign_time='${dscSignTimeFormat}',dsc_begin_time='${dscBeginTimeFormat}',dsc_end_time='${dscEndTimeFormat}',update_user='${optUser}' where id=#{id}")
    void updateDsc(DsContractVo dataInfo);

    @Update("update t_ds_contract set is_del=-1 where id in (${dataId})")
    void deleteDsc(@Param("dataId") String dataId);
}
